﻿1986 BMW 325e (E30)
----------------------------------------------------------------------------------------------------
Source Mod Author: M_Power
Model/Texture/Compilation Work: HRH
Handling: wanted188
Conversion into GTAV: HRH

In this mod, there are parts used from following artists: Turn10, Slightly Mad Studios, Joep Peters, NFSGaMER 98, Cyro Miguel, Joey E., gunner, Attila, Shino Raju, Rodem, sp8y.
----------------------------------------------------------------------------------------------------
This is my contribution to the E30 family in Los Santos. As there are no sedans released, I premiere the pre-facelift 325e sedan from approximately model year 1986. 
Included 2 versions of the vehicle - non-tunable stock and a heavily tunable version.

325e
Features replaceable version + is featured together with 325et as add-on.
Almost stock OEM-version. Non-tunable. A few extras.
Famous in the tuner category - "M20B27", or in other words, the "ETA engine", which is basically a stroked M20B25 and great for "turboing".
Native interior partially deleted for intolerable quality and replaced with bits from HQ M3 interior, therefore vehicle has leather interior as stock.
Custom handling.
[PAINT:1][PAINT:4][PAINT:6][PAINT:7] channels are active. Sixth and seventh only for interior.

325et
Only add-on version.
Thoroughly tunable. Many extras.
M20B27 with 74mm single turbo conversion - correct assembly logic and full 3D. Custom fitted parts from RB26DETT were used.
Ronal R10 Turbo rims. Iconic for such car.
Racing running gear with effectively working suspension tuning in LSC.
Custom handling featuring boost control via engine tuning (as featured on my "HKRS2"). The more You apply, more uncontrollable will be...
Features resemblances from tuning companies such as HKS, MOMO, Sparco, Wilwood, GReddy & etc.
Features resemblances from OEM selection, such as M-Tech stuff, M3 bodykit & etc.
[PAINT:1][PAINT:2][PAINT:4][PAINT:6][PAINT:7] channels are active. Sixth and seventh only for interior.

As this is a complex mod, there are something on the minus side, as well
Native model with textures is very ancient. Today, there are much higher standards.
Trim removal option reveals some bad polies underneath. I try to fix them, if I come up something smarter.
Minor logical issues, such as hydro e-brake should be relocated, some incomplete interior wiring, unmodified wheel wells, partial tuning incompability & etc.
Problems with bullet reactions.
Whole model and conversion work done only in zModeler3...

----------------------------------------------------------------------------------------------------
How to install:
....................................................................................................
If this is your first time to install a car mod in GTAV, then please read this: https://forums.gta5-mods.com/topic/1451/tutorial-grand-theft-auto-v-modding-a-few-things-you-should-know (especially 3.paragraph).
....................................................................................................
Replace version:

1. Select "Replace" folder included with this mod.
2. Open OPENIV and go to update/x64/dlcpacks/patchday1ng/dlc.rpf/x64/levels/gta5/vehicles.rpf
3. Find "warrener.yft", "warrener.ytd" & "warrener_hi.yft" and replace them with the same 3 files from the replace folder.
3a. Do exactly the same process (copy these 3 files) in update/x64/dlcpacks/patchday2ng/dlc.rpf/x64/levels/gta5/vehicles.rpf
4. Open "vehicles.meta" in x64w.rpf/dlcpacks/mphipster/dlc.rpf/common/data/levels/gta5
5. Use CTRL+F to search "warrener".
6. Replace following lines in game-file.
    <Item>
      <modelName>warrener</modelName>
      <txdName>warrener</txdName>
      <handlingId>WARRENER</handlingId>
      <gameName>325E</gameName>
      <vehicleMakeName>BMW</vehicleMakeName>
      <expressionDictName>null</expressionDictName>
      <expressionName>null</expressionName>
      <animConvRoofDictName>null</animConvRoofDictName>
      <animConvRoofName>null</animConvRoofName>
      <animConvRoofWindowsAffected />
      <ptfxAssetName>null</ptfxAssetName>
      <audioNameHash>SENTINEL</audioNameHash>
      <layout>LAYOUT_STD_WARRENER</layout>
      <coverBoundOffsets>WARRENER_COVER_OFFSET_INFO</coverBoundOffsets>
      <explosionInfo>EXPLOSION_INFO_DEFAULT</explosionInfo>
      <scenarioLayout />
      <cameraName>DEFAULT_FOLLOW_VEHICLE_CAMERA</cameraName>
      <aimCameraName>DEFAULT_THIRD_PERSON_VEHICLE_AIM_CAMERA</aimCameraName>
      <bonnetCameraName>VEHICLE_BONNET_CAMERA_NEAR_LOW</bonnetCameraName>
      <povCameraName>DEFAULT_POV_CAMERA_LOOKAROUND</povCameraName>
      <FirstPersonDriveByIKOffset x="0.000000" y="-0.050000" z="-0.010000" />
      <FirstPersonDriveByUnarmedIKOffset x="0.000000" y="0.000000" z="0.000000" />
      <FirstPersonProjectileDriveByIKOffset x="0.000000" y="-0.045000" z="0.048000" />
      <FirstPersonProjectileDriveByPassengerIKOffset x="-0.063000" y="-0.080000" z="-0.005000" />
      <FirstPersonProjectileDriveByRearLeftIKOffset x="0.000000" y="0.000000" z="-0.030000" />
	  <FirstPersonProjectileDriveByRearRightIKOffset x="0.000000" y="0.000000" z="-0.030000" />
	  <FirstPersonDriveByLeftPassengerIKOffset x="0.000000" y="0.015000" z="-0.050000" />
      <FirstPersonDriveByRightPassengerIKOffset x="-0.015000" y="-0.050000" z="-0.030000" />
      <FirstPersonDriveByRightRearPassengerIKOffset x="0.000000" y="0.015000" z="-0.050000" />
	  <FirstPersonDriveByLeftPassengerUnarmedIKOffset x="0.000000" y="-0.050000" z="0.000000" />
      <FirstPersonDriveByRightPassengerUnarmedIKOffset x="0.000000" y="-0.050000" z="0.000000" />
      <FirstPersonPassengerMobilePhoneOffset x="0.153000" y="0.180000" z="0.415000" />
      <FirstPersonMobilePhoneOffset x="0.156000" y="0.255000" z="0.490000" />
      <FirstPersonMobilePhoneSeatIKOffset>
		<Item>
			<Offset x="0.153000" y="0.088000" z="0.418000" />
			<SeatIndex value="2" />
		</Item>
		<Item>
			<Offset x="0.153000" y="0.088000" z="0.418000" />
			<SeatIndex value="3" />
		</Item>
      </FirstPersonMobilePhoneSeatIKOffset>
      <PovCameraOffset x="0.000000" y="-0.185000" z="0.610000" />
      <PovCameraVerticalAdjustmentForRollCage value="0.000000" />
      <PovPassengerCameraOffset x="0.000000" y="0.000000" z="0.030000" />
      <PovRearPassengerCameraOffset x="0.000000" y="-0.050000" z="0.030000" />
      <vfxInfoName>VFXVEHICLEINFO_CAR_GENERIC</vfxInfoName>
      <shouldUseCinematicViewMode value="true" />
      <shouldCameraTransitionOnClimbUpDown value="false" />
      <shouldCameraIgnoreExiting value="false" />
      <AllowPretendOccupants value="true" />
      <AllowJoyriding value="true" />
      <AllowSundayDriving value="true" />
      <AllowBodyColorMapping value="true" />
      <wheelScale value="0.205000" />
      <wheelScaleRear value="0.205000" />
      <dirtLevelMin value="0.000000" />
      <dirtLevelMax value="0.850000" />
      <envEffScaleMin value="0.000000" />
      <envEffScaleMax value="1.000000" />
      <envEffScaleMin2 value="0.000000" />
      <envEffScaleMax2 value="1.000000" />
      <damageMapScale value="0.500000" />
      <damageOffsetScale value="0.500000" />
      <diffuseTint value="0x00FFFFFF" />
      <steerWheelMult value="0.500000" />
      <HDTextureDist value="5.000000" />
      <lodDistances content="float_array">
        450.000000
        460.000000
        475.000000	
        490.000000	
        500.000000	
        500.000000
      </lodDistances>
      <minSeatHeight value="0.846" />
      <identicalModelSpawnDistance value="20" />
      <maxNumOfSameColor value="10" />
      <defaultBodyHealth value="1000.000000" />
      <pretendOccupantsScale value="1.000000" />
      <visibleSpawnDistScale value="1.000000" />
      <trackerPathWidth value="2.000000" />
      <weaponForceMult value="1.000000" />
      <frequency value="30" />
      <swankness>SWANKNESS_2</swankness>
      <maxNum value="4" />
      <flags>FLAG_AVERAGE_CAR FLAG_CAN_HAVE_NEONS FLAG_COUNT_AS_FACEBOOK_DRIVEN FLAG_HAS_INTERIOR_EXTRAS FLAG_PEDS_CAN_STAND_ON_TOP FLAG_USE_FAT_INTERIOR_LIGHT</flags>
      <type>VEHICLE_TYPE_CAR</type>
      <plateType>VPT_FRONT_AND_BACK_PLATES</plateType>
	  <dashboardType>VDT_ZTYPE</dashboardType>
      <vehicleClass>VC_SEDAN</vehicleClass>
      <wheelType>VWT_TUNER</wheelType>
      <trailers />
      <additionalTrailers />
      <drivers />
      <extraIncludes />
      <vfxExtraInfos />
      <doorsWithCollisionWhenClosed />
      <driveableDoors />
      <bumpersNeedToCollideWithMap value="false" />
      <needsRopeTexture value="false" />
      <requiredExtras />
      <rewards />
      <cinematicPartCamera>
        <Item>WHEEL_FRONT_RIGHT_CAMERA</Item>
        <Item>WHEEL_FRONT_LEFT_CAMERA</Item>
        <Item>WHEEL_REAR_RIGHT_CAMERA</Item>
        <Item>WHEEL_REAR_LEFT_CAMERA</Item>
      </cinematicPartCamera>
      <NmBraceOverrideSet />
      <buoyancySphereOffset x="0.000000" y="0.000000" z="0.000000" />
      <buoyancySphereSizeScale value="1.000000" />
      <additionalVfxWaterSamples />
      <pOverrideRagdollThreshold type="NULL" />
      <maxSteeringWheelAngle value="109.000000" />
      <firstPersonDrivebyData>
        <Item>STD_WARRENER_FRONT_LEFT</Item>
        <Item>STD_BUFFALO2_FRONT_RIGHT</Item>
        <Item>STD_WARRENER_REAR_LEFT</Item>
        <Item>STD_WARRENER_REAR_RIGHT</Item>
      </firstPersonDrivebyData>
    </Item>
6a. Copy the same lines into "vehicles.meta", which is in update/update.rpf/dlc_patch/mphipster/common/data/levels/gta5
7. Open "handling.meta" in x64w.rpf/dlcpacks/mphipster/dlc.rpf/common/data
8. Use CTRL+F to find "WARRENER"
9. Replace following lines in game-file:
    <Item type="CHandlingData">
      <handlingName>WARRENER</handlingName>
      <fMass value="1300.000000" />
      <fInitialDragCoeff value="11.000000" />
      <fPercentSubmerged value="85.000000" />
      <vecCentreOfMassOffset x="0.000000" y="0.000000" z="-0.200000" />
      <vecInertiaMultiplier x="1.300000" y="1.300000" z="1.500000" />
      <fDriveBiasFront value="0.000000" />
      <nInitialDriveGears value="5" />
      <fInitialDriveForce value="0.19000" />
      <fDriveInertia value="3.15000" />
      <fClutchChangeRateScaleUpShift value="5.000000" />
      <fClutchChangeRateScaleDownShift value="3.800000" />
      <fInitialDriveMaxFlatVel value="195.000000" />
      <fBrakeForce value="0.35000" />
      <fBrakeBiasFront value="0.690000" />
      <fHandBrakeForce value="1.050000" />
      <fSteeringLock value="45.000000" />
      <fTractionCurveMax value="2.230000" />
      <fTractionCurveMin value="1.830000" />
      <fTractionCurveLateral value="18.500000" />
      <fTractionSpringDeltaMax value="0.150000" />
      <fLowSpeedTractionLossMult value="1.05000" />
      <fCamberStiffnesss value="0.300000" />
      <fTractionBiasFront value="0.500000" />
      <fTractionLossMult value="-0.90000" />
      <fSuspensionForce value="3.200000" />
      <fSuspensionCompDamp value="1.500000" />
      <fSuspensionReboundDamp value="2.000000" />
      <fSuspensionUpperLimit value="0.100000" />
      <fSuspensionLowerLimit value="-0.100000" />
      <fSuspensionRaise value="-0.020000" />
      <fSuspensionBiasFront value="0.470000" />
      <fAntiRollBarForce value="1.10000" />
      <fAntiRollBarBiasFront value="0.50000" />
      <fRollCentreHeightFront value="0.050000" />
      <fRollCentreHeightRear value="0.110000" />
      <fCollisionDamageMult value="1.000000" />
      <fWeaponDamageMult value="1.000000" />
      <fDeformationDamageMult value="1.10000" />
      <fEngineDamageMult value="1.500000" />
      <fPetrolTankVolume value="65.000000" />
      <fOilVolume value="5.000000" />
      <fSeatOffsetDistX value="0.000000" />
      <fSeatOffsetDistY value="-0.050000" />
      <fSeatOffsetDistZ value="-0.080000" />
      <nMonetaryValue value="100000" />
      <strModelFlags>440010</strModelFlags>
      <strHandlingFlags>1</strHandlingFlags>
      <strDamageFlags>0</strDamageFlags>
      <AIHandling>SPORTS_CAR</AIHandling>
      <SubHandlingData>
        <Item type="" />
        <Item type="" />
        <Item type="" />
      </SubHandlingData>
    </Item>
10. Open "carvariations.meta" in x64w.rpf/dlcpacks/mphipster/dlc.rpf/common/data
11. Use CTRL+F to find "warrener"
12. Replace following lines in game-file.
    <Item>
      <modelName>warrener</modelName>
      <colors>
        <Item>
          <indices content="char_array">
            111 
            22 
            147 
            22
						22
						22 
          </indices>
          <liveries>
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
          </liveries>
        </Item>
				<Item>
          <indices content="char_array">
            24 
            22 
            23 
            22
						22
						22 
          </indices>
          <liveries>
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
          </liveries>
        </Item>
				<Item>
          <indices content="char_array">
            15 
            22 
            2 
            22
						22
						22 
          </indices>
          <liveries>
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
          </liveries>
        </Item>
        <Item>
          <indices content="char_array">
            48 
            22 
            25 
            22
						106
						22 
          </indices>
          <liveries>
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
          </liveries>
        </Item>
        <Item>
          <indices content="char_array">
            49 
            22 
            6 
            22
						23
						6 
          </indices>
          <liveries>
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
          </liveries>
        </Item>
				<Item>
          <indices content="char_array">
            25 
            22 
            6 
            22
						22
						22 
          </indices>
          <liveries>
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
          </liveries>
        </Item>
      </colors>
      <kits>
        <Item>0_default_modkit</Item>
      </kits>
      <windowsWithExposedEdges />
      <plateProbabilities>
        <Probabilities>
          <Item>
            <Name>Standard White</Name>
            <Value value="25" />
          </Item>
          <Item>
            <Name>White Plate 2</Name>
            <Value value="50" />
          </Item>
          <Item>
            <Name>Blue Plate</Name>
            <Value value="10" />
          </Item>
          <Item>
            <Name>Yellow Plate</Name>
            <Value value="15" />
          </Item>
        </Probabilities>
      </plateProbabilities>
      <lightSettings value="2" />
      <sirenSettings value="0" />
    </Item>
13. Done! Play as "warrener".
....................................................................................................
Add-on version:
1. Put folder "325e30" into update/x64/dlcpacks
2. Open "dlclist.xml" in update/update.rpf/common/data
3. Add line into the list:
    <Item>dlcpacks:\325e30\</Item>
4. Save and put back inside update/update.rpf/common/data
5. Play the game and spawn with "325e" or "325et"
----------------------------------------------------------------------------------------------------
It is recommended that you use OpenIV's "mods"-folder feature (http://openiv.com/?p=1132).
-----------------------------------------------------------------------------------------------------
SUPPORT THE DEVELOPER! PLEASE BUY THE GAME!
